// Project name:JavaRedis
// Creator:muhong
// Date time:2022/11/25,10:24 下午
// Name:ChannelHandler

package org.gmh.channel;

import org.gmh.channel.handler.ChannelHandlerContext;

import java.lang.annotation.*;

public interface ChannelHandler {

    void handlerAdd(ChannelHandlerContext ctx) throws Exception;

    void handlerRemoved(ChannelHandlerContext ctx) throws Exception;

    void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception;

    @Inherited
    @Documented
    @Target(ElementType.TYPE)
    @Retention(RetentionPolicy.RUNTIME)
    @interface Sharable{

    }
}
